{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
 <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>积分规则</strong></li>
	</ol>
</div>
{include file="general_settings/top"}
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('integral_rule')}">
					
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" id ="check3" name="checkbox2[a]" value="1" {if $res1==1}checked="checked"{/if}><b>积分兑换储值</b>
							<span style="color:#c6c6c6;"><br/>积分和储值的兑换比例:</span>
							<div class="input-group col-sm-4">
								<input class="form-control text-center" placeholder="10" id="check3_input" name="score_proportion" value="{$result['score_proportion']}" style="width:30%;height:25px;"type="text">
									<span style="font-size:16px;"><b>&nbsp;:1&nbsp;</b></span>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" id ="check3" name="checkbox2[b]" value="2" {if $res2==2}checked="checked"{/if}><b>消费成功后，会员可获得积分</b>
							<span style="color:#c6c6c6;"><br>每多少元获得1积分:</span>
							<div class="width-100">
								<input class="form-control text-center" placeholder="0" id="check3_input" name="money_count" value="{$result['money_count']}" style="width:30%;"type="text">
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" id ="check3" name="checkbox2[c]" value="3" {if $res3==3}checked="checked"{/if}><b>充值/充次成功后，会员可获得积分</b>
							<span style="color:#c6c6c6;"><br>每多少元获得1积分:</span>
							<div class="width-100">
								<input class="form-control text-center" placeholder="0" id="check3_input" name="cz_cc_money" value="{$result['cz_cc_money']}" style="width:30%;"type="text">
							</div>
						</div>
					</div>
					<input type="hidden" name="checkbox2[]" value="false" />
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
					</div>
					
				</form>
			</div>
		</div>
	</div>
</div>

{/block} {block name="script"}
<script>
$("#li-bar-detail").addClass("active");
	if(document.getElementById("check3").ckecked==true){
		alert('1');
	}else{
		document.getElementById("check3_input").toggleClass('readonly','readonly');
	}
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>

{/block}